using UnityEngine;

namespace Gobang
{
    public class HumanPlayer : ChessPlayer
    {
        protected override void Update()
        {
            base.Update();
            if (Input.GetMouseButtonDown(0) && CanPlay())
            {
                Vector3 world = Camera.main.ScreenToWorldPoint(Input.mousePosition);
                chessboard.Put(world);
            }
        }

    }
}